import request from '@/utils/request'

export const getListAPI = (params) => {
  return request({
    url: '/pole/info/list',
    params
  })
}
export const delListAPI = (ids) => {
  return request({
    url: `/pole/info/${ids}`,
    method: 'DELETE'
  })
}
export const editListAPI = (data) => {
  return request({
    url: `/pole/info`,
    method: 'PUT',
    data
  })
}
export const getAreaListAPI = () => {
  return request({
    url: `/parking/area/dropList`
  })
}
export const addoneAPI = (data) => {
  return request({
    url: `/pole/info`,
    method: 'post',
    data
  })
}

